﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Smart
{
    public class DbEnvanter : Tablo
    {
        public int recId { get; set; }
        public int DepoId { get; set; }
        public decimal Miktar { get; set; }

        public DbEnvanter()
        {
            this.TabloAdi = "TBL_ENVANTER";
        }

        public override IEnumerable<string> BulkImport(int depoNo)
        {
            yield return "İndiriliyor...";
            string[] dt = BackOffice.Get.EnvanterList(depoNo, new DateTime(1900, 1, 1));
            yield return "indirildi.";
            SqlCeClient.Get.importAllRows(this.TabloAdi, dt);
            yield return "Tamamlandı";
        }
    }
}
